package com.example.common.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.common.enums.GenderStatus;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "student")
public class Student {
    @Id
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String age;
    private String name;
    @Enumerated(EnumType.STRING) // 关键注解，存储枚举的 value 字段
    private GenderStatus gender;
    private String grade;  //年级
    private String major;  //专业
    private String department;  //学院
    private Timestamp hireDate; //入学时间
    private String email;//邮箱
    private Integer deleted; // 0:未删除, 1:已删除

}
